<template>
  <div class="mask" v-show="isShow">
    <img class="loading" src="../../assets/123.gif" alt="">
  </div>
</template>

<script>
export default {
  data () {
    return {
      isShow: false
    }
  }
}
</script>

<style lang="scss" scoped>
.mask {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0,0,0,.5);
  z-index: 100;
  .loading{
    width: 80px;
    height: 80px;
    position: fixed;
    left: 50%;
    top: 50%;
    margin-left: -40px;
    margin-top: -40px;
    z-index: 20;
  }
}
</style>
